package com.yuyue.dronesystem.beans;

import com.yuyue.dronesystem.enums.PlaceType;

/**
 * Population
 */
public class Population extends Site {

    public Population() {
    }

    public Population(Double longitude, Double latitude, String name, String note) {
        super(longitude, latitude, 0.0, name, note, PlaceType.POPULATION);
    }

    public Population(Double longitude, Double latitude, Double altitude, String name, String note) {
        super(longitude, latitude, altitude, name, note, PlaceType.POPULATION);
    }

    @Override
    public boolean equals(Object o) {
        if (o == this)
            return true;
        if (!(o instanceof Population)) {
            return false;
        }
        return super.equals((Site) o);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public String toString() {
        return "{" +
        " population='" + super.toString() + "'" +
        "}";
    }
}